import { ChartEnum } from '@/enums/pageEnum'
import { RouteRecordRaw } from 'vue-router'

const importPath = {
  [ChartEnum.CHART_HOME_NAME]: () => import('@/views/chart/index.vue')
}

const chartRoutes: RouteRecordRaw = {
  path: ChartEnum.CHART_HOME,
  name: ChartEnum.CHART_HOME_NAME,
  component: importPath[ChartEnum.CHART_HOME_NAME],
  meta: {
    title: '工作空间',
    isRoot: true,
    noKeepAlive: true
  }
}

export default chartRoutes
